package com.lifeng.shop.lifengshop.servies;

import com.lifeng.shop.lifengshop.pojo.bo.ParentProduct;
import com.lifeng.shop.lifengshop.pojo.entry.Product;
import com.lifeng.shop.lifengshop.pojo.vo.DetailProductVO;
import com.lifeng.shop.lifengshop.pojo.vo.GoodsItemVO;

import java.util.List;

public interface ProductServies {
    int deleteByPrimaryKey(Integer gid);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer gid);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<ParentProduct> selectAllFilter(String[] filter, int tid);

    List<GoodsItemVO> getIndexRecommendGoodsLists(int[] recomendedGoodsGids);

    DetailProductVO getDetailProductVO(Integer gid);
}
